var Tools = require("./tools");
let MapFileModel = require("./mapFileModel")
var path = require("path")


const MAP_FILE_PATH = "../example/mapfile";

let CopyPic = {};

CopyPic.start = function () {
    let scriptDir = __dirname;
    let absolutePath = path.resolve(scriptDir, MAP_FILE_PATH);
    console.log("mapfile根目录", absolutePath)

    //调用文件遍历方法
    let mapFiles = Tools.getFilesPathRecursion(absolutePath);
    console.log(mapFiles);


    let files = []
    for (let f of mapFiles) {

        let mapfile = new MapFileModel(f);
        files.push(mapfile);
    }

}

CopyPic.start();
// module.exports = CopyPic;


